import request from '@/utils/request'

/**
 * @RequestMapping("/business/projectTos")
 * 针对VProjectTosController的请求
 */


/**
 * 根据参数获取【V_PROJECT_TOS】列表
 * @param query
 * @returns {*}
 */
export function listVProjectTos(query) {
  return request({
    url: '/business/projectTos/list',
    method: 'get',
    params: query
  })
}


/**
 * 根据id获取【V_PROJECT_TOS】详细信息
 * @param id
 * @returns {*}
 */
export function getVProjectTos(id) {
  return request({
    url: '/business/projectTos/' + id,
    method: 'get'
  })
}


/**
 * 一键绑定合同
 * @param data
 * @returns {*}
 */
export function oneKeyBindContract(data) {
  return request({
    url: '/business/projectTos/oneKeyBindContract',
    method: 'post',
    data: data
  })
}

/**
 * 解绑合同
 * @param data
 * @returns {*}
 */
export function unBindContract(data) {
  return request({
    url: '/business/projectTos/unBindContract',
    method: 'post',
    data: data
  })
}

